# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  
  def logged_in?
    session[:user_id]
  end 
  
  def current_user
    @current_user ||= User.find session[:user_id]
  end 
  
  #
end